export const itemMaps = (data) => {
  const maps = {};
  for (const key in data) {
    if (Object.prototype.hasOwnProperty.call(data, key)) {
      const arr = data[key];
      if (Array.isArray(arr)) {
        arr.forEach((item) => {
          maps[item.value] = item;
        });
      }
    }
  }
  return maps;
};
